<td width="753" valign="top"><table width="743" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r1_c4.jpg" width="743" height="14" /></td>
      </tr>
    </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="47" valign="top" background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r3_c4.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="15" colspan="2"></td>
            </tr>
            <tr>
              <td width="61%" height="35" class="tit">相册:<a href="<?php echo SITE_URL?>Tong/Gallery/tid/<?php echo $tong->getId();?>/gid/<?php echo $photo->getGalleryId();?>"><?php echo $photo->getGallery()->getName();?></a></td>
              <td width="39%" class="tit">&nbsp;</td>
            </tr>
          </table><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td bgcolor="#b3afa6" height="1"></td>
                    </tr>
                  </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="37%"height="50" class="tit">照片名:<?php echo $photo->getName();?>&nbsp;&nbsp;&nbsp; 由<span class="yh"><a href="<?php echo SITE_URL.'sns/space.php?uid='.$photo->getUserId(); ?>"><? echo $photo->getUcMembers()->getUsername();?></a></span>发布</td>
                <td width="15%"><table width="82" height="31" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="99" background="<?php echo SITE_URL?>img/anniu/an_r11_c5.gif">&nbsp;&nbsp;<span class="tit"><a href="<?php echo SITE_URL?>GalleryPhotos/create?type=tong&id=<?php echo $tong->getId();?>">发布照片</a></span></td>
                  </tr>
                </table></td>
                <?php if ($photo->getUserId() == $userId){?>
                <td width="16%"><table width="91" height="32" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td background="<?php echo SITE_URL?>img/anniu/an_r17_c4.gif" class="login">&nbsp;<a href="<?php echo SITE_URL?>GalleryPhotos/edit/id/<?php echo $photo->getId();?>">修改照片信息</a></td>
                  </tr>
                </table></td>
                <td width="32%"><table width="47" height="31" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td background="<?php echo SITE_URL?>img/anniu/an_r8_c7.gif">&nbsp;&nbsp;<span class="tit"><a href="<?php echo SITE_URL?>GalleryPhotos/delete/id/<?php echo $photo->getId();?>">删除</a></span></td>
                  </tr>
                </table></td>
                <?php }?>
              </tr>
            </table>
            <table width="90%" border="1" bordercolor="#cccccc" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" bgcolor="#eeeeee"><br><img src="<?php echo SITE_URL?>/uploads/<? echo $photo->getSrc();?>" width="292" height="390" /><br><br></td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r13_c4.jpg" width="743" height="10" /></td>
        </tr>
      </table>
      <table width="753" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="753" height="5"></td>
        </tr> 
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="18" height="33" background="<?php echo SITE_URL?>img/group/photoview/photoview_r14_c10.jpg"><img src="<?php echo SITE_URL?>img/group/photoview/photoview_r14_c8.jpg" width="5" height="33" /></td>
          <td width="678" background="<?php echo SITE_URL?>img/photo/photoview_r14_c10.jpg" class="login">照片说明：</td>
          <td width="47" align="right" background="<?php echo SITE_URL?>img/photo/photoview_r14_c10.jpg"><img src="<?php echo SITE_URL?>img/group/photoview/photoview_r14_c12.jpg" width="4" height="33" /></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="743" border="1" bordercolor="#FFCC99" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="tit" height="27">评论内容</td>
              </tr>
              <tr>
                <td class="tit" height="20">&nbsp;</td>
              </tr>
            </table>
            
                      <?php 
		  foreach ($comments->getResults() as $i => $c){
		  ?>
      <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="12%" rowspan="2" align="center" valign="top" height="50"><img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$c->getUserId()."&size=small"?>" width="38" height="38" class="headimg" /></td>
                  <td height="20"><span class="word"><a href="<?php echo SITE_URL.'sns/space.php?uid='.$c->getUserId(); ?>"><? if($c->getUcMembers()!=NULL) echo $c->getUcMembers()->getUsername();?></a></span><span class="word">于<span class="tit"><? echo $c->getCreatedAt();?></span>发表说：</span></td>
                </tr>
                <tr>
                  <td class="word"><? echo $c->getContent();?></td>
                </tr>
              </table>
                          <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#CCCCCC" height="1"></td>
                </tr>
            </table>
            <?php }?>
              
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#CCCCCC" height="1"><span class="word">当前第<?php echo $comments->getPage();?> 页，共<?php echo $comments->getLastPage();?>页&nbsp;</span>&nbsp;<span class="yh">
                  <?php 
                    $pageurl = '/tong/photo/?tid='.$tong->getId().'&pid='.$photo->getId().'&page=';
                    $prestr = '上页';
                    $nextstr = '下页';
                  	echo pager($comments,$pageurl,$prestr,$nextstr);
				?>
                </span></td>
                </tr>
            </table>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#CCCCCC" height="1"></td>
                </tr>
            </table>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#CCCCCC" height="1"></td>
                </tr>
            </table>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#CCCCCC" height="1"></td>
                </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="553" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r1_c4.jpg" width="743" height="14" /></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r3_c4.jpg" height="25" class="tit">&nbsp;&nbsp;我也说两句</td>
        </tr>
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r3_c4.jpg">
          <form action="<?php echo SITE_URL?>comments/update/" method="post" name="commentform">
            <textarea name="content" cols="50" rows="5" class="textinfo"></textarea>
            <input type="hidden" name="object_id" value="<?php echo $photo->getId();?>" />
            <input type="hidden" name="object_type" value="photo" /> 
            <input type="hidden" name="backUrl" value="<?php echo SITE_URL?>tong/photo/tid/<?php echo $tong->getId();?>/pid/<?php echo $photo->getId();?>/page/<?php echo $comments->getPage();?>/created/set" />
          </form>          
          </td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/group/photoview/group_photoview_r3_c4.jpg" height="50"><table width="47" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td background="<?php echo SITE_URL?>img/anniu/anniu_r16_c8.png">&nbsp;&nbsp;&nbsp;<span class="login" onclick="javascript:commentform.submit();">发表</span></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="47" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r13_c4.jpg" width="743" height="10" /></td>
        </tr>
      </table></td>